package bupt.party.online.dao;

import java.util.List;

import bupt.party.online.model.BranchNews;

public interface IBranchNewsDao {
	public BranchNews findById(int id);
	public BranchNews queryByTitle(String branchNewsTitle);
	public void deleteBranchNews(BranchNews branchNews);
	public void saveBranchNews(BranchNews brachNews);
	public void updateBranchNews(BranchNews branchNews);
	public List<BranchNews> queryAll();
	
	public int getResultCountByTag(int tag);
	
	public List<BranchNews> getResultsByPage(int tag,int firstResult,int pageSize);
	
	public List<BranchNews> QueryByConditions(String queryString , Object[]values,int firstResult,int pageSize);

	public int getResultCount(String countSql,Object[] queryValues);
	
	public boolean saveOrUpdate(BranchNews bean);
	
	public boolean deleteNewsById(int id);
}
